package com.barunsw.bwf.ems.common.history;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.barunsw.bwf.ems.common.controller.CommonController;
import com.barunsw.bwf.ems.dto.HistoryVo;

@Controller
@RequestMapping("/history")
public class HistoryController extends CommonController {
	private static final Logger LOGGER = LoggerFactory.getLogger(HistoryController.class);
	
	@Autowired
	HistoryService historyService;
	
	/**
	 * Node 리스트 조회
	 * 
	 * @return
	 * @throws Exception
	 */
	@RequestMapping(value = "", method = RequestMethod.POST)
	public @ResponseBody List<HistoryVo> getHistoryList(@RequestBody HistoryVo historyVo) throws Exception {
		return historyService.getHistoryList(historyVo);
	}
}